Skip to content

feat: rename terserOptions to minimizerOptions#667

Merged
alexander-akait merged 2 commits intomainfrom
claude/rename-terser-to-minimizer-U9QQz
May 4, 2026
Merged

feat: rename terserOptions to minimizerOptions#667
alexander-akait merged 2 commits intomainfrom
claude/rename-terser-to-minimizer-U9QQz

Conversation

@alexander-akait
Copy link
Copy Markdown
Member

Introduce minimizerOptions as the canonical name for the options that
are forwarded to the active minimizer (Terser by default, or whatever
function is supplied via minify). The previous terserOptions key
keeps working as a deprecated alias; passing both at the same time now
throws an explicit error.

Schema, JSDoc-derived TypeScript declarations, README examples and tests
have been updated to favour the new name while still validating the old
one.

claude added 2 commits May 4, 2026 16:53
Introduce `minimizerOptions` as the canonical name for the options that
are forwarded to the active minimizer (Terser by default, or whatever
function is supplied via `minify`). The previous `terserOptions` key
keeps working as a deprecated alias; passing both at the same time now
throws an explicit error.

Schema, JSDoc-derived TypeScript declarations, README examples and tests
have been updated to favour the new name while still validating the old
one.
… set

Prefer `minimizerOptions` silently when both are provided instead of
throwing. This keeps existing configurations that pass the deprecated
`terserOptions` working unchanged, even if a tooling layer also injects
the new key.
@linux-foundation-easycla
Copy link
Copy Markdown

CLA Not Signed

@codecov
Copy link
Copy Markdown

codecov Bot commented May 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.38%. Comparing base (e62c2f8) to head (4e0ea09).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #667      +/-   ##
==========================================
+ Coverage   97.36%   97.38%   +0.01%     
==========================================
  Files           3        3              
  Lines         380      382       +2     
  Branches      154      154              
==========================================
+ Hits          370      372       +2     
  Misses         10       10              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@alexander-akait alexander-akait merged commit e6fc053 into main May 4, 2026
28 of 29 checks passed
@alexander-akait alexander-akait deleted the claude/rename-terser-to-minimizer-U9QQz branch May 4, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants